<?php
error_reporting(0);
include '../comm/config.php';
include_once '../comm/wjt.php';
include_once '../comm/checkpostandget.php';
$tag="center";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>找回密码 - 用户中心</title>
<link href="../css/usercss.css" rel="stylesheet" type="text/css">
<link href="../template/<?=MOBAN?>/css/common.css" rel="stylesheet" type="text/css">
<script language="javascript" type="text/javascript">
function checkemail()
{
		var str = document.getElementById("email").value;    
        if(str.length!=0)
		{    
			reg=/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;    
			if(!reg.test(str))
			{    
				document.getElementById("ckemail").innerHTML = '<img src=../images/cuo.gif alt="错误" align=absmiddle /> <font color=#ff0000>电子邮件格式填写错误，请检查</font>';
				return false;
			}
			else
			{
				document.getElementById("ckemail").innerHTML = '<img src=../images/dui.gif alt="正确" align=absmiddle /> <font color=#009900>电子邮件格式正确</font>';
				return true;
			}
		}
		else
		{
				document.getElementById("ckemail").innerHTML = '<img src=../images/cuo.gif alt="错误" align=absmiddle /> <font color=#ff0000>请填写您注册时的电子邮件</font>';
				return false;
		}
} 

function checkall()
{
	if(!checkemail())
	{
		document.getElementById("ckemail").innerHTML = '<img src=../images/cuo.gif alt="错误" align=absmiddle /> <font color=#ff0000>请填写您注册时的电子邮件</font>';
		return false;
	}
	else
	{
		return true;
	}
}
</script>
</head>
<body>
<?php
include("../template/".MOBAN."/header.tpl.php");
?>
<?php
include("../template/".MOBAN."/nav.tpl.php");
?> <form id="form1" name="form1" method="post" action="getpassword_step2.php" onsubmit="return checkall()">
<div id="maincenter">
  <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="50" colspan="3" align="left">&nbsp;</td>
  </tr>
  <tr>
    <td height="50" colspan="3" align="center"><img src="../images/step1.gif" alt="找回密码第一步" width="637" height="31" /></td>
  </tr>
  <tr>
    <td height="50" colspan="3" align="center" id="ckemail"></td>
  </tr>
  <tr>
    <td width="312" height="51" align="right" style="font-size:14px">请填写您注册时的邮箱： &nbsp;</td>
    <td width="230" align="center"><input type="text" name="email" onblur="checkemail();"  size="20" maxlength="50" style="width:200px;"  class="ddinput"/></td>
    <td width="258" align="left"><input type="submit" name="Submit" value="找回密码" class="ddbutton" /></td>
  </tr>
  <tr>
    <td height="92" align="right" style="font-size:14px">&nbsp;</td>
    <td width="230" align="center">&nbsp;</td>
    <td width="258" align="left">&nbsp;</td>
  </tr>
</table>
</div></form>
<?php
include("../template/".MOBAN."/footer.tpl.php");
?>
</body>
</html>

